@import "fontsize-and-color.scss";

.banner-player {
  height: 460px;
  width: 1226px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;

  a {
    display: block;
  }

  &:has(>a:hover) .highlight-point {
    animation-play-state: paused;
    // background-color: aqua;
  }

  .banner-bg {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(../image/sidebar/navbar/banner.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    animation: auto-play 20s step-end infinite;

    &:hover {
      animation-play-state: paused;
    }
  }

  @keyframes auto-play {
    0% {
      background-image: url(../image/sidebar/navbar/banner.jpg);
    }

    33.3% {
      background-image: url(../image/sidebar/navbar/banner2.jpg);
    }

    66.6% {
      background-image: url(../image/sidebar/navbar/banner3.jpg);
    }

    100% {
      background-image: url(../image/sidebar/navbar/banner4.jpg);
    }
  }

  a:not(.banner-bg) {
    height: 10px;
    width: 10px;
    border: 2px solid hsla(0, 0%, 100%, .3);
    border-radius: 5px;
    background-color: rgba($color: #000000, $alpha: .4);
    margin-left: 10px;
    cursor: pointer;
    position: absolute;
    bottom: 24px;
    z-index: 5;
  }

  a {
    &:nth-child(5) {
      right: 30px;

      &:hover~.highlight-point {
        right: 30px;
        background-color: aqua;

      }
    }

    &:nth-child(4) {
      right: 50px;
    }

    &:nth-child(3) {
      right: 70px;
    }

    &:nth-child(2) {
      right: 90px;
    }

    &:nth-child(6) {
      right: 90px;
      background-color: hsla(0, 0%, 100%, .4);
      border-color: rgba(0, 0, 0, .4);
      animation: auto-move 20s step-end infinite;
      pointer-events: none;
    }

    @keyframes auto-move {
      0% {
        right: 90px;
      }

      33.3% {
        right: 70px;
      }

      66.6% {
        right: 50px;
      }

      100% {
        right: 30px;
      }
    }
  }
}